package net.freebytes.config.refresh.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 千里明月
 */
@Component
public class ConfigConstants {

    private static volatile String author;
    private static volatile String gitee;
    private static volatile String email;

    public static String getAuthor() {
        return author;
    }

    @Value("${author}")
    public void setAuthor(String author) {
        setAuthorValue(author);
    }

    public static void setAuthorValue(String author) {
        ConfigConstants.author = author;
    }


    public static String getGitee() {
        return gitee;
    }

    @Value("${gitee}")
    public void setGitee(String gitee) {
        setGiteeValue(gitee);
    }

    public static void setGiteeValue(String gitee) {
        ConfigConstants.gitee = gitee;
    }


    public static String getemail() {
        return email;
    }

    @Value("${email}")
    public void setEmail(String email) {
        setEmailValue(email);
    }

    public static void setEmailValue(String email) {
        ConfigConstants.email = email;
    }
}
